//
//  HomeLookDeliveryRangeModel.m
//  FD
//
//  Created by xiaofang wang on 2018/11/27.
//  Copyright © 2018年 ZhiYuan Network. All rights reserved.
//  首页  “查看配送范围模型”

#import "HomeLookDeliveryRangeModel.h"

@implementation HomeLookDeliveryRangeModel

//字典中嵌套字典数组
+ (NSDictionary *)mj_objectClassInArray {
    return @{@"positionList":[HomeLatLngListModel class]};
}

- (CLLocationCoordinate2D)currentCoordinate {
    CGFloat lat = [self.latitude floatValue];
    CGFloat log = [self.longitude floatValue];
    
    CLLocationCoordinate2D coordinate2d = CLLocationCoordinate2DMake(lat, log);
    return coordinate2d;
}

//重写descrition
- (NSString *)description {

    NSArray *pty = [HomeLookDeliveryRangeModel rb_objPropeties];
    
    return [[self dictionaryWithValuesForKeys:pty] description];
}

@end
